package com.mdb.open.trade.domain.po.content;

import com.baomidou.mybatisplus.annotation.*;
import com.mdb.bc.api.data.DataObjectBase;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
* 类描述：
*  实体类
*
* @author liuyi
* @date 2019-07-15
*/
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("account")
public class Account extends DataObjectBase {

    private static final long serialVersionUID = 1L;
    /**
    * 主键ID
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
    * 账号ID
    */
    @TableField("account_id")
    private String accountId;

    /**
    * 账号名称
    */
    @TableField("account_name")
    private String accountName;

    /**
    * secret
    */
    private String secret;

    /**
    * 状态
    */
    private String status;

    /**
     * 类型 内部 开放接口
     */
    private String type;

    /**
    * 创建时间
    */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
    * 创建用户(ID)
    */
    @TableField(value = "create_user_id", insertStrategy = FieldStrategy.NOT_NULL)
    private String createUserId;

    /**
    * 创建用户(名称)
    */
    @TableField(value = "create_user_name", insertStrategy = FieldStrategy.NOT_NULL)
    private String createUserName;

    /**
    * 更新时间
    */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 操作人ID
     */
    @TableField(value = "opt_user_id", fill = FieldFill.INSERT_UPDATE)
    private String optUserId;

    /**
     * 操作人name
     */
    @TableField(value = "opt_user_name", fill = FieldFill.INSERT_UPDATE)
    private String optUserName;

}
